﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Xml;
using SharePointBrowser.Data;

namespace SharePointBrowser.Forms
{
    public partial class ViewItem : Form
    {
        const int HPADDING = 5;

        public string SiteUrl { get; set; }
        public string ListId { get; set; }
        public string ListName { get; set; }
        public string ItemId { get; set; }

        public ViewItem()
        {
            InitializeComponent();
        }

        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
            XmlNode item = SPAdapter.Instance.GetListItemById(ListId, ItemId, SiteUrl);
            XmlNode row = item.SelectSingleNode("rs:data/z:row", SPAdapter.Instance.NamespaceManager);
            foreach (XmlAttribute attr in row.Attributes)
            {
                switch (attr.Name)
                {
                    default:
                        break;
                }
            }
        }
    }
}